<%@ page import="com.model.User" %>
<%@ page import="java.util.List" %>
<%@ page import="com.model.Goods" %>
<%@ page import="com.dao.GoodsDao" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>

<%
    GoodsDao goodsDao = new GoodsDao();
    Boolean isOnline;
    User user = (User) session.getAttribute("user");
    String user_name = null;
    if(user == null){
        isOnline=false;
    }
    else {
        isOnline = true;
        user_name = user.getUserName();
    }
    List<Goods> goods = goodsDao.getGoods_topSix();
%>

<head lang="en">
    <meta charset="UTF-8">
    <title>608STORE</title>
    <link href="/store/css/home.css" rel="stylesheet" type="text/css">
    <link href="/store/css/head.css" rel="stylesheet" type="text/css">

    <script language="JavaScript">
        var isOnline= <%= isOnline%> ;
        var username="<%= user_name%>";
    </script>
    <script language="JavaScript" src="/store/js/jquery-3.2.1.min.js"></script>
    <script language="JavaScript" src="/store/js/home.js"></script>
    <script language="JavaScript" src="/store/js/head.js"></script>
</head>


<body>
<header>
    <jsp:include page="head.jsp"></jsp:include>
</header>
<div class="main_content">
    <div class="nav_div">
        <ul class="nav">
            <li>
                <span><a href="#">饮料</a></span>
                <div class="child_menu">

                </div>
            </li>
            <li>
                <span><a href="#">烟酒</a></span>
                <div class="child_menu">

                </div>
            </li>
            <li>
                <span><a href="#">泡面</a></span>
                <div class="child_menu">

                </div>
            </li>
            <li>
                <span><a href="#">饼干</a></span>
                <div class="child_menu">

                </div>
            </li>
            <li>
                <span><a href="#">薯类</a></span>
                <div class="child_menu">

                </div>
            </li>
            <li>
                <span><a href="#">一元小零食</a></span>
                <div class="child_menu">

                </div>
            </li>
            <li>
                <span><a href="#">电脑维修</a></span>
                <div class="child_menu">

                </div>
            </li>

        </ul>
    </div>
    <div class="carousel">
        <ul class="carousel_ul">
            <li style="display: list-item"><img src="/store/image/play_1.png"></li>
            <li><img src="/store/image/play_2.png"></li>
            <li><img src="/store/image/play_3.png"></li>
            <li><img src="/store/image/play_4.png"></li>
            <li><img src="/store/image/play_5.jpg"></li>
            <li><img src="/store/image/play_6.jpg"></li>
        </ul>
        <ul class="circle">
            <li style="background-color: white"></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
        </ul>
    </div>
</div>
</body>
</html>